package com.opencloud.ywt.client.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 城市信息
 * @author yeyong
 */
@TableName("bhyf_xhb_sleep_person")
public class BhyfXhbSleepPerson implements Serializable {

    private static final long serialVersionUID= -7676664126043859727L;

    /**
     * 学生ID
     */
    @TableId(value = "personid")
    @ApiModelProperty(value = "学生ID")
    private Integer personid;


    /**
     * 日期
     */
    @TableId(value = "sleepdate")
    @ApiModelProperty(value = "日期")
    private Date sleepdate;

    /**
     * 开始时间
     */
    @TableId(value = "sleepbegin")
    @ApiModelProperty(value = "开始时间")
    private Date sleepbegin;

    /**
     * 结束时间
     */
    @TableId(value = "sleepend")
    @ApiModelProperty(value = "结束时间")
    private Date sleepend;
    /**
     * 睡眠状态
     * 0:没带
     * 1：基本没睡
     * 2：睡得少
     * 3：正常
     */
    @TableId(value = "sleepstatus")
    @ApiModelProperty(value = "睡眠状态")
    private Integer sleepstatus;

    /**
     * 睡眠时长
     */
    @TableId(value = "sleepseconds")
    @ApiModelProperty(value = "睡眠时长")
    private Integer sleepseconds;


    /**
     * 入睡时长
     */
    @TableId(value = "fallseconds")
    @ApiModelProperty(value = "入睡时长")
    private Integer fallseconds;

    /**
     * 睡眠断续次数
     */
    @TableId(value = "sleepcount")
    @ApiModelProperty(value = "睡眠断续次数")
    private Integer sleepcount;


    /**
     * 睡眠翻身次数
     */
    @TableId(value = "turncounts")
    @ApiModelProperty(value = "睡眠翻身次数")
    private Integer turncounts;

    /**
     * 入睡困难
     */
    @TableId(value = "insomnia")
    @ApiModelProperty(value = "入睡困难")
    private boolean insomnia;


    /**
     * 创建时间
     */
    @TableId(value = "createtime")
    @ApiModelProperty(value = "创建时间")
    private Date createtime;

    public Integer getPersonid() {
        return personid;
    }

    public void setPersonid(Integer personid) {
        this.personid = personid;
    }

    public Integer getSleepStatus() {
        return sleepstatus;
    }

    public void setSleepStatus(Integer sleepstatus) {
        this.sleepstatus = sleepstatus;
    }

    public Integer getSleepSeconds() {
        return sleepseconds;
    }

    public void setSleepSeconds(Integer sleepseconds) {
        this.sleepseconds = sleepseconds;
    }

    public Integer getSleepCount() {
        return sleepcount;
    }

    public void setSleepCount(Integer sleepcount) {
        this.sleepcount = sleepcount;
    }

    public Integer getTurncounts() {
        return turncounts;
    }

    public void setTurncounts(Integer turncounts) {
        this.turncounts = turncounts;
    }

    public Date getSleepDate() {
        return sleepdate;
    }

    public void setSleepDate(Date sleepdate) {
        this.sleepdate = sleepdate;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getSleepBegin() {
        return sleepbegin;
    }

    public void setSleepBegin(Date sleepbegin) {
        this.sleepbegin = sleepbegin;
    }

    public Date getSleepEnd() {
        return sleepend;
    }

    public void setSleepEnd(Date sleepend ) {
        this.sleepend = sleepend;
    }

    public Integer getFallseconds() {
        return fallseconds;
    }

    public void setFallseconds(Integer fallseconds) {
        this.fallseconds = fallseconds;
    }

    public Boolean getInsomnia() {
        return insomnia;
    }

    public void setInsomnia(Boolean insomnia) {
        this.insomnia = insomnia;
    }

    @Override
    public String toString() {
        return "BhyfXhbSleepPerson{" +
                "personid=" + personid +
                ", sleepdate=" + sleepdate +
                ", sleepbegin=" + sleepbegin +
                ", sleepend=" + sleepend +
                ", sleepstatus=" + sleepstatus +
                ", sleepcount=" + sleepcount +
                ", sleepseconds=" + sleepseconds +
                ", createtime=" + createtime +
                ", fallseconds=" + fallseconds +
                ", turncounts=" + turncounts +
                ", insomnia=" + insomnia +
                "}";
    }
}
